-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(styles): isolated point style overrides #2278
Conversation
@markov00 could you take another look at this? |
Comment from #2277 (comment)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work fine for me, thanks!
# [63.1.0](v63.0.0...v63.1.0) (2024-01-29) ### Bug Fixes * **deps:** update dependency @elastic/eui to ^92.1.1 ([#2315](#2315)) ([f4e4fae](f4e4fae)) * **deps:** update dependency @playwright/test to ^1.41.1 ([#2316](#2316)) ([e2ab527](e2ab527)) * **styles:** isolated point style overrides ([#2278](#2278)) ([3fb1df2](3fb1df2)) ### Features * **metric:** custom slot to render contents in gap ([#2303](#2303)) ([3256c8c](3256c8c)) ### Performance Improvements * **tooltip:** improve placement logic ([#2310](#2310)) ([cac5f49](cac5f49))
Summary
This change applies a hierarchy to the
(AreaSeriesStyles|LineSeriesStyles).isolatedPoint
styles. This is to prevent changing values in one to override the other. If the consumer applies a style to thepoints
they would expect the style to transfer to all points.The hierarchy would be (in order of highest priority):
(AreaSeriesStyles|LineSeriesStyles).isolatedPoint
(AreaSeriesStyles|LineSeriesStyles).point
visible
overrideTheme.(areaSeriesStyle|lineSeriesStyle).isolatedPoint
Details
I don't think the onus of this styling should be on the chart consumer to always supply a backup style to
isolatedPoint
whenever they are setting thepoint
style.Issues
fix #2277
Checklist
:xy
,:partition
):interactions
,:axis
)closes #123
,fixes #123
)packages/charts/src/index.ts
light
anddark
themes